package collection;

import java.util.Date;


/**
 * Title：
 * Description：
 * Created by Myth on 4/19/2017.
 */



public class Main {
    public static void main(String[] args) {
        //TODO   2.Date的使用 3.排序  4.各种集合不同实现的使用  5.排序和查找 6. Compareable与Comparator
        AccountBook accountBook = new AccountBook();
        accountBook.add(new Item("test1",100,new Date()));
        accountBook.add(new Item("test2",200,new Date()));
        accountBook.add(new Item("test3",300,new Date()));
        accountBook.add(new Item("test4",400,new Date()));
        for (Item item : accountBook.getItemSet()) {
            System.out.println(item);
        }
    }
}
